package com.wxxymaker.edu.model.entity;

import io.github.biezhi.anima.Model;
import io.github.biezhi.anima.annotation.Ignore;
import io.github.biezhi.anima.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @AUTHOR soft
 * @DATE 2018/9/3 20:43
 * @DESCRIBE 公告
 */
@EqualsAndHashCode(callSuper = false)
@Data
@Table(name = "announcement")
public class Announcement extends Model {
    private Integer id;

    private Integer userId;  // 发布者
    @Ignore
    private User    user;

    private Integer courseId; // 所属课程
    @Ignore
    private Course  course;

    private Integer taskId;   // 公告对应的任务id
    @Ignore
    private Task    task;     // 公告对应的任务

    private String  startTime;// 开始时间
    private String  endTime;  // 结束时间
    private String  content;  // 公告内容
    private String  time;     // 公告的发布时间
}
